package entities;

public class TimeTableColumn {
	
	private boolean available = true;
	private Course test = null;
	
	public TimeTableColumn(){
	}
	public TimeTableColumn(Course a){
		this.test = a;
	}
	
	public boolean isAvailable() {
		if(this.test!=null)
			this.available = false;
			
		return this.available;
	}
		
	public void setClass(Course _class) {
		this.test = _class;
	}
	
	public void setCount(int n) {
		this.test.set_count(n);
	}
	
	public int getCount() {
		return this.test.get_count();
	}
	
	public int getDuration() {
		return this.test.get_duration();
	}
	
	public Course getCourse() {
		return this.test;
	}
	
	public String getInstructor() {
		return this.test.get_instructor();
	}
	
	@Override
	public String toString() {
		return this.test.toString();
	}
	
}
